
#import <UIKit/UIKit.h>
#import "NetImagerAppDelegate.h"
#import "SenderViewDelegate.h"

@interface PostController : NSObject <NSStreamDelegate, UIAlertViewDelegate>
{
    NSURLConnection *           _connection;
    NSData *                    _bodyPrefixData;
    NSInputStream *             _fileStream;
    NSData *                    _bodySuffixData;
    NSOutputStream *            _producerStream;
    NSInputStream *             _consumerStream;
	NSData *				    _imageData;
    const uint8_t *             _buffer;
    uint8_t *                   _bufferOnHeap;
    size_t                      _bufferOffset;
    size_t                      _bufferLimit;
	NSURL *						_postURL;
	NSString *					_userName;
	NSString *					_passWord;
	id<SenderViewDelegate>		_delegate;
}

- (void)sendAction:(id)sender userName:(NSString *)name
		  passWord:(NSString*)pass
		   postURL:(NSString *)postUrl
		 imagePost:(UIImage *)image;

- (void)cancelAction:(id)sender;

@end
